/**
 * Created by mapbar_front on 2019/8/5.
 */
import React,{Component} from 'react';


const HocPublic = (WrappedComponent,selectData)=> class A extends Component{
    constructor(props){
        super(props);
        this.state = {
            //data: selectData(DataSource,props)
        }
    }
    render(){
        return(
            <div>
                <h1>我是一个高阶组件</h1>
                <WrappedComponent data={this.state.data} {...this.props}/>
            </div>
        )
    }
}

export default HocPublic;
